<?php
class listAction extends frontAction{
	public function execute(){
		$cateID = $this->getGetParam("cateID",0);
		$product = new DaoProduct();
		$where = "1";
		$title="";
		if($cateID){
			$where = "categoryID = '{$cateID}' ";
			$title = service_category::getNameByID($cateID);    
		}
		
		list($product,$page) = $product->getListPage("categoryID = '".$cateID."' and newp = 1 order by updateTime desc",9);
		
		
		$cache = new Cache_request();
		$cache->set("currentID",$cateID);
		$this->assign('product',$product);
		$this->assign('page',$page);
		$this->assign('actionName',"newp");
		$this->display('index');
	}
}
?>
